* {
    margin: 0;
    padding: 0;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #e0e0e0;
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
}

p {
    font-size: 20px;
}

#main_page {
    display: flex;
    width: 100%;
    height: 100%;
    margin: 0;
    padding-top: 50px;
}


#navbar a[href="/agent"] {
    font-weight: bold;
    /* 加粗字体 */
}

#navbar a:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

#navbar img {
    width: 35px;
    /* 增加图片的宽度 */
    height: 35px;
    /* 增加图片的高度 */
    margin-right: 0;
    /* 移除图片与文字之间的间距 */
}

#chat-input-container {
    position: fixed;
    bottom: 50px;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    border: 0;
    padding: 1px 0px;
    background-color: #2c2c2c;
    border-top: 1px solid #555;
    border-bottom: 1px solid #333;
}

#send-button {
    position: absolute;
    right: 0.3rem;
    width: 5rem;
    height: 2.4rem;
    border-radius: 5px;
    border: none;
    font-size: large;
    background-color: #3eb575;
    color: white;
    cursor: pointer;
    text-align: center;
    display: none;
    z-index: 1;
}

#more_function_button {
    position: absolute;
    right: 0.3rem;
    width: 2.4rem;
    height: 2.4rem;
    background-image: url('../images/more_function_start.png');
    background-size: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: none;
    background-color: #3eb575;
    cursor: pointer;
    z-index: 1;
}

#agent-chat-textarea {
    display: flex;
    min-height: 20px;
    max-height: 50px;
    overflow-y: auto;
    resize: none;
    width: auto;
    position: absolute;
    right: 2.9rem;
    left: 2.9rem;
    background-color: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    border-radius: 10px;
    padding: 10px 0.5rem 10px 0.5rem;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.1s ease;
    line-height: 1.5;
    box-sizing: border-box;
    align-items: center;
}

#agent-chat-textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

#chat-container {
    position: absolute;
    top: 5%;
    /* 与顶部导航栏高度一致 */
    bottom: 100px;
    /* 初始为聊天输入框高度 (50px) 加上底部导航栏高度 (45px) */
    width: 100%;
    padding: 10px;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0);
    overflow: auto;
    scrollbar-width: none;
    transition: bottom 0.1s ease;
    box-sizing: border-box;
}


.chat-messages-user {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 5px;
    width: 100%;
    height: fit-content;
    justify-content: right;
}

.chat-messages-bot {
    display: flex;
    flex-direction: row;
    position: relative;
    top: 5px;
    width: 100%;
    height: fit-content;
    justify-content: left;
}

.chat-bubble-user {
    padding: 10px;
    margin: 10px 8px;
    margin-top: 0px;
    border-radius: 4px;
    max-width: calc(100% - 112px);
    word-wrap: break-word;
    font-size: 1.1rem;
    background-color: #3eb575;
    color: #fff;
    align-self: flex-end;
}

.chat-bubble-bot {
    padding: 10px;
    margin: 10px 8px;
    margin-top: 0px;
    border-radius: 4px;
    max-width: calc(100% - 112px);
    word-wrap: break-word;
    font-size: 1.1rem;
    background-color: #2c2c2c;
    color: #fff;
    align-self: flex-end;
}

.chat-image-user {
    background-image: url('../images/user.jpg');
    width: 38px;
    height: 38px;
    background-size: cover;
    border-radius: 5px;
}

.chat-image-bot {
    background-image: url('../images/bot.jpg');
    width: 38px;
    height: 38px;
    background-size: cover;
    border-radius: 5px;
}

#star {
    height: 30px;
    width: 30px;
}

#more_function_board {
    width: auto;
    height: 80px;
    position: fixed;
    right: 0;
    left: 0;
    bottom: 50px;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
}

#more_function_board #function_1 {
    display: flex;
    position: relative;
    top: 50px;
    width: 50px;
    height: 50px;
    left: 4%;
    background-color: #b0aec4;
    border: 0;
    padding: 0;
    border-radius: 10px;
}

#more_function_board #function_1:hover {
    background-color: #726c6c;
}

#photo {
    visibility: hidden;
}

#album_photo {
    display: flex;
    position: absolute;
    top: 0.5rem;
    left: 0rem;
    color: white;
    font-size: 2.5rem;
    width: 6rem;
    height: 4rem;
    justify-content: center;
    align-items: center;
}

#album_photo:hover {
    background-color: #726c6c;
}

#camera_photo {
    display: flex;
    position: absolute;
    top: 0.5rem;
    left: 6.0rem;
    color: white;
    font-size: 2.5rem;
    width: 6rem;
    height: 4rem;
    justify-content: center;
    align-items: center;
}

#camera_photo:hover {
    background-color: #726c6c;
}

#image-preview {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#preview-image {
    max-width: 100%;
    max-height: 100%;
}

@keyframes slideup {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-80px);
    }
}

@keyframes slidedown {
    from {
        transform: translateY(-80px);
    }

    to {
        transform: translateY(0px);
    }
}

.slide-up {
    /* animation: slideup 0.1s ease-in-out forwards; */
    transform: translateY(-80px);
    transition: all, 0.1s;
}

.slide-down {
    /* animation: slidedown 0.1s ease-in-out forwards; */
    transform: translateY(0px);
    transition: all, 0.1s;
}

#phone-button {
    position: absolute;
    bottom: 52px;
    left: 0px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    width: 6rem;
    height: 4rem;
    justify-content: left;
    align-items: flex-end;
    padding: 4px 4px;
}

#phone_icon {
    width: 3rem;
    height: 3rem;
}

#camera-button {
    position: absolute;
    bottom: 52px;
    right: 3px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    width: 6rem;
    height: 4rem;
    justify-content: right;
    align-items: center;
    padding: 4px 4px;
}

#camera_icon {
    width: 3rem;
    height: 3rem;
}

/* ...existing code... */
#imageUploadPanel {
    width: 100vw;
    height: 100px;
    position: absolute;
    bottom: 55px;
    align-items: center;
    justify-content: center;
    display: none;
    /* 默认隐藏 */
}

#imageUploadPanel .content {
    overflow-x: auto;
    display: flex;
    align-items: center;
    padding: 5px;
}

#imageUploadPanel .content .imageList {
    overflow-x: auto;
    display: flex;
    align-items: center;
}

#imageUploadPanel .content .image {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    margin-right: 5px;
    position: relative;
}

#imageUploadPanel .content .image .musk {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    position: absolute;
    background-color: rgba(255, 0, 0, 0.5);
    z-index: 2;
    left: 0;
    top: 0;
}

#imageUploadPanel .content .image img {
    width: 100%;
    height: 100%;
}

#imageUploadPanel .content .image .remove {
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    right: 1px;
    top: 1px;
}

#imageUploadPanel .content .add {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    background-color: #3eb575;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#imageUploadPanel .content .add img {
    width: 30px;
    height: 30px;
}

#imageUploadPanel .content .add input {
    display: none;
}


#topbar {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1e1e1e;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px;
}

#agent-name {
    font-size: 20px;
    font-weight: bold;
}

#microphone-button {
    position: absolute;
    left: 0.3rem;
    width: 2.4rem;
    height: 2.4rem;
    background-image: url('../images/microphone.png');
    background-size: 2rem;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 50%;
    border: none;
    background-color: #3eb575;
    cursor: pointer;
    z-index: 1;
}

#delete-chat-history {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 80px;
    height: 45px;
    background-image: url('../images/delete.png');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: 10px center;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

/* 音频控制按钮样式 */
#audio-control {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 80px;
    height: 45px;
    background-image: url('../images/audio.png');
    background-size: 40%;
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    border: none;
    background-color: transparent;
    cursor: pointer;
}

#audio-control.muted {
    background-image: url('../images/audio_mute.png');
}